//
//  SGJHomeBannerCell.m
//  Sewage
//
//  Created by 宗庆猛 on 2017/5/26.
//  Copyright © 2017年 宗庆猛. All rights reserved.
//

#import "SGJHomeBannerCell.h"
#import "SGJCycleView.h"
#import "Masonry.h"
@interface SGJHomeBannerCell()
@property (weak, nonatomic) SGJCycleView *cycleView;
@end
@implementation SGJHomeBannerCell
- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self setupUI];
    }
    return self;
}
- (void)setupUI{
    SGJCycleView *cycleView = [[SGJCycleView alloc]init];
    [self.contentView addSubview:cycleView];
    self.cycleView = cycleView;
    
    [cycleView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.contentView);
    }];
}
- (void)setCycleImageList:(NSArray<UIImage *> *)cycleImageList{
    _cycleImageList = cycleImageList;
    
    self.cycleView.imageList = cycleImageList;
}
@end

